package cn.elvea.controller;

import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LogoutController {
    @RequestMapping("/logout")
    protected String logout() throws Exception {
        SecurityUtils.getSubject().logout();
        return "login";
    }
}
